import { Layout } from "antd";
import {Button} from "antd";
import { Link } from "react-router-dom";
import './index.scss'


const LayoutHeader=()=>{
    const {Header}=Layout;
    const theme=useAppDispatch()
    return (
        <Header className='relative'>
            <Link to='' className="absolute right-36 top-1">
               进入3D展览馆
            </Link>
            <Button 
             onClick={handleToggleTheme}
             type="primary"
             ghost
             className='absolute right-10 top-5'
            >
               切换主题
            </Button>
            {theme==='dark'?(
                
            ):()}
        </Header>
    )
}
export default LayoutHeader;